<?php /* УТФ-8:fix */

class SPImodel__logos__front extends SPImodel__logos
{
    public function get_random()
    {
		$query =    " SELECT * "
               .      " FROM ".SPIcfg::$store['table:logos']
               .     " WHERE workstatus=1 "
               .  " ORDER BY RANDOM() "
               .     " LIMIT 1 "
               ;

        return SPIstore::I()->query( $query )->fetch_and_close();
    }
}
